package com.atguigu.springcloud.alibaba.controller;

import com.atguigu.springcloud.entities.Dept;
import com.atguigu.springcloud.service.PaymentFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DeptController_Consumer {

    @Autowired
    private PaymentFeignService paymentFeignService;

    @RequestMapping(value = "/consumer/deptList")
    public List port() {
        List<Dept> list = paymentFeignService.list();
        return list;
    }

}